<template>
   <div>
        <span v-for="(item, index) in menuItems" >
            <Icon v-bind:type="item.type"></Icon>
        </span>
    </div>
</template>

<script>
    import $ from '../../lib/util';
    export default {
        name: "TopMenu",
        data() {
            return {
                'showName': '菜单管理',
                'menuItems': null
            }
        },
        mounted(){
            const _this = this;
            $.ajax.get('/icons/').then(res=>{
                _this.menuItems = JSON.parse(res.msg);
            });
        } ,
    }
</script>

<style scoped>

</style>
